home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
battimer.zip
/
BATTIMER.DOC
< prev
next >
Wrap
Text File
|
1988-06-18
|
2KB
|
58 lines
BATCH TIMER DOCUMENTATION
Written by Curtis Harper
LAKELAND RBBS-PC
Benton, Kentucky
DATA# (502)527-7617
This program was written to fill a need for a delay timer for my autoexec
batch file. I wanted a program that would allow a 5 second delay before
automatically executing my RBBS-PC program at start-up or reboot. If
necessary I could abort the RBBS and return to DOS.
The program is written and complied in Microsoft Quickbasic 4. The source
code and complied exe file are given along with this documentation in the
BATTIMER.ARC file.
To run this program you must make some changes to your autoexec.bat file.
First find a point where you can break the file before autoexec calls the
program which you automatically run. If BATTIMER is allowed to time out
by not pressing any key, the autoexec file will be allowed to continue.
If a key is pressed before time out, BATTIMER will dynamically create a
BAT file called TIME.BAT. After BATTIMER is called your autoexec file
should look for the TIME.BAT. If it exists the autoexec file should return
to the DOS prompt.
For an example assuming AUTOEXEC is on harddrive C:
OLD AUTOEXEC.BAT FILE
-------------------------------------
ECHO OFF
GETCLOCK
RBBS-PC
ECHO ON
NEW AUTOEXEC.BAT FILE
-------------------------------------
ECHO OFF
GETCLOCK
add> IF EXIST C:TIME.BAT DEL C:TIME.BAT
add> BATTIMER
add> IF EXIST C:TIME.BAT GOTO EXIT
RBBS-PC
add> :EXIT
add> IF EXIST C:TIME.BAT DEL C:TIME.BAT
ECHO ON
With BATTIMER installed you can regain control of your computer if you have
your autoexec.bat file setup for automatic program execution. I would be
pleased to know of any additional uses for the program and any changes or
suggestions you might have.